/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "工艺配方明细",TableName = "formuladetails",DBServer = "SmesDbContext")]
    public partial class formuladetails:SmesEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="Detail_Id")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Detail_Id { get; set; }

       /// <summary>
       ///配方名称
       /// </summary>
       [Display(Name ="配方名称")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string FormulaName { get; set; }

       /// <summary>
       ///关联配方ID
       /// </summary>
       [Display(Name ="关联配方ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int FormulaSetId { get; set; }

       /// <summary>
       ///目标值
       /// </summary>
       [Display(Name ="目标值")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal target_value { get; set; }

       /// <summary>
       ///目标偏差
       /// </summary>
       [Display(Name ="目标偏差")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal tolerance { get; set; }

       /// <summary>
       ///是否是多个参数
       /// </summary>
       [Display(Name ="是否是多个参数")]
       [Column(TypeName="bool")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public bool IsManyFormula { get; set; }

       /// <summary>
       ///更新时间
       /// </summary>
       [Display(Name ="更新时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? last_updated { get; set; }

       /// <summary>
       ///分组名称
       /// </summary>
       [Display(Name ="分组名称")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string GroupName { get; set; }

       
    }
}